<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    let score = +prompt('请输入您的分数:')
    if (score > 700) {
        alert('恭喜你被免费录取')
    } else if (score > 300) {
        alert('恭喜你正好过线录取')
    } else {
        alert('不好意思没有被录取')
    }

    let numbers = [1, 2, 3, 4, 5, 6, 7]
    for (let i = 0; i < numbers.length; i++) {
        alert(`当前循环到 ${i}`)
    }

    // switch...case
    switch (1) {
        case 1:
            console.log(1)
            break
        case 2:
            console.log(2)
            break
        case 3:
            console.log(3)
            break
        case 4:
            console.log(4)
            break
        default:
            console.log(100)
    }

    let a = 0
    while (a < 100) {
        console.log(a)
        a++
    }
</script>
</body>
</html>
